home *** CD-ROM | disk | FTP | other *** search
/ The Utilities Experience / The Utilities Experience - Volume 1.iso / software / misc / o-z / x-windows / mesa-amiwin / src / span.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-30  |  2.4 KB  |  90 lines

  1. /* span.h */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  1.2
  6.  * Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library; if not, write to the Free
  20.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23.  
  24. /*
  25. $Id: span.h,v 1.6 1995/06/12 15:42:53 brianp Exp $
  26.  
  27. $Log: span.h,v $
  28.  * Revision 1.6  1995/06/12  15:42:53  brianp
  29.  * changed color arrays to GLubyte
  30.  *
  31.  * Revision 1.5  1995/05/31  14:57:36  brianp
  32.  * added gl_read_index_span() and gl_read_color_span()
  33.  *
  34.  * Revision 1.4  1995/05/22  20:59:34  brianp
  35.  * Release 1.2
  36.  *
  37.  * Revision 1.3  1995/03/04  19:25:29  brianp
  38.  * 1.1 beta revision
  39.  *
  40.  * Revision 1.2  1995/02/27  22:49:11  brianp
  41.  * modified for PB
  42.  *
  43.  * Revision 1.1  1995/02/24  14:28:31  brianp
  44.  * Initial revision
  45.  *
  46.  */
  47.  
  48.  
  49. #ifndef SPAN_H
  50. #define SPAN_H
  51.  
  52.  
  53. #include "GL/gl.h"
  54.  
  55.  
  56. extern void gl_write_index_span( GLuint n, GLint x, GLint y, GLint z[],
  57.                  GLuint index[], GLenum primitive );
  58.  
  59.  
  60. extern void gl_write_monoindex_span( GLuint n, GLint x, GLint y, GLint z[],
  61.                      GLuint index, GLenum primitive );
  62.  
  63.  
  64. extern void gl_write_color_span( GLuint n, GLint x, GLint y, GLint z[],
  65.                  GLubyte red[], GLubyte green[],
  66.                  GLubyte blue[], GLubyte alpha[],
  67.                  GLenum primitive );
  68.  
  69.  
  70. extern void gl_write_monocolor_span( GLuint n, GLint x, GLint y, GLint z[],
  71.                      GLfloat color[4], GLenum primitive );
  72.  
  73.  
  74. extern void gl_write_texture_span( GLuint n, GLint x, GLint y, GLint z[],
  75.                    GLfloat s[], GLfloat t[],
  76.                    GLubyte red[], GLubyte green[],
  77.                    GLubyte blue[], GLubyte alpha[],
  78.                    GLenum primitive );
  79.  
  80.  
  81. extern void gl_read_color_span( GLuint n, GLint x, GLint y,
  82.                     GLubyte red[], GLubyte green[],
  83.                     GLubyte blue[], GLubyte alpha[] );
  84.  
  85.  
  86. extern void gl_read_index_span( GLuint n, GLint x, GLint y, GLuint indx[] );
  87.  
  88.  
  89. #endif
  90.